package com.forsythia.sns.spring.advice;

import java.lang.reflect.Method;

import org.apache.log4j.Logger;
import org.springframework.aop.MethodBeforeAdvice;

public class LoginAdvice implements MethodBeforeAdvice {
    
    private Logger log = Logger.getLogger(this.getClass());

    @Override
    public void before(Method arg0, Object[] arg1, Object arg2) throws Throwable {
        isLogined();
    }
    
    public void isLogined(){
        log.info("[LoginAdvice] beginning");
    }

}
